import request from '@/utils/request'

// 查询智能体管理列表
export function listAiAgent(query) {
  return request({
    url: '/biz/aiAgent/list',
    method: 'get',
    params: query
  })
}

// 查询智能体管理详细
export function getAiAgent(aiAgentId) {
  return request({
    url: '/biz/aiAgent/' + aiAgentId,
    method: 'get'
  })
}

// 新增智能体管理
export function addAiAgent(data) {
  return request({
    url: '/biz/aiAgent',
    method: 'post',
    data: data
  })
}

// 修改智能体管理
export function updateAiAgent(data) {
  return request({
    url: '/biz/aiAgent',
    method: 'put',
    data: data
  })
}

// 删除智能体管理
export function delAiAgent(aiAgentId) {
  return request({
    url: '/biz/aiAgent/' + aiAgentId,
    method: 'delete'
  })
}
// 查询智能体平台详细
export function getAiAgentBotList(aiAgentPlatId) {
  return request({
    url: '/biz/aiAgent/getAiAgentBotList/' + aiAgentPlatId,
    method: 'get'
  })
}

export function getCheckAiAgentSta(aiAgentId) {
  return request({
    url: '/biz/aiAgent/getCheckAiAgentSta/' + aiAgentId,
    method: 'get'
  })
}